<meta charset="UTF-8" />
<!-- #set(PaginatedList<Recharge> rechargeList) -->
<!--
		#set(
		pager = rechargeList.pager,
		totalResults = pager.getCountOfTotalResults(),
		totalPages = pager.getCountOfTotalPages() * 1,
		pageSize = pager.pageSize,
		pageNo = pager.pageNo,
		prePageNo = pager.getPrevPageNo(),
		nextPageNo = pager.getNextPageNo()
		)
-->
<!--#if(rechargeList)-->
<div class="panel-heading panel-result-title">
	<h3 class="panel-title">查询结果</h3>
	<div class="btn-group btn-gp-default">
		<button id="btn_member_export" type="button" class="btn btn-default panel-radius-all">导出</button>
	</div>
</div>
<table id="rechargeRecord" class="table table-bordered table-hover table-condensed tb" style="text-align:center;">
	<tr>
		<td class="tb-chose">编号</td>
		<td class="tb-type">会员</td>
		<td class="tb-type">金额(元)</td>
		<td class="tb-type">类型</td>
		<td class="tb-type">操作员</td>
		<td class="tb-long-time">操作时间</td>
	</tr>
	<!--#for(Recharge recharge : rechargeList)-->
		<tr>
			<td><a href="yueyogaAdmin/toMemberRecharge.jhtml?memberId=${recharge.member.memberid}">${recharge.rechargeId}</a></td>
			<td>${recharge.member.name}</td>
			<td>
			<!-- #if(recharge.logType=='提现') -->
			-${recharge.money}
			<!-- #else -->
			${recharge.money}
			<!-- #end --></td>
			<td>${recharge.logType}</td>
			<td>${recharge.user.userDetail.name}</td>
			<td>${recharge.createTime.toDate("yyyy-MM-dd HH:mm:ss")}</td>
		</tr>
	<!--#end-->
</table>
	<div class="paging-page">$!{include("paging_page.html")}</div>
<!-- #else -->
<div class="panel-body">
	没有符合条件的数据
</div>
<!-- #end -->
<script type="text/javascript">
$(function(){
	//导出
	$("#btn_member_export").click(function(){
		var oldUrl = $("form[name=rechargeForm]").attr("action");
		var exporttUrl = "yueyogaAdmin/exportRecharge.jhtml";
		$("form[name=rechargeForm]").attr("action", exporttUrl);
		$("form[name=rechargeForm]").submit();
		$("form[name=rechargeForm]").attr("action", oldUrl);
	});
	
	 var display = "${display}";
		if(display=='block'){
			$(".div_search_result").show();
		}else{
			$(".div_search_result").hide();
		}
});
	function changePage(value) {
		value = value * 1;
		var totalPages = '${totalPages}';
		if (value > totalPages) {
			value = totalPages;
		} else if (value < 1) {
			value = 1;
		}
		$("#txtPageNumber").val(value);
		goToPage(value);
	}
	
	function goToPage(pageNo) {
		$("#hidPageNo").val(pageNo);
		document.rechargeForm.submit();
	}
</script>